package com.plant.service.impl;

import com.plant.dao.PhotoMapper;
import com.plant.pojo.Photo;
import com.plant.service.PhotoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("photoService")
public class PhotoImplService implements PhotoService {

    @Autowired
    PhotoMapper photoMapper;

    @Override
    public void addPhoto(Photo photo) {
        photoMapper.addPhoto(photo);
    }

    @Override
    public Photo query(String resourceNumber) {
        return photoMapper.query(resourceNumber);
    }

    @Override
    public void delete(String resourceNumber) {
        photoMapper.delete(resourceNumber);
    }
}
